﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WpfApp3
{
    /// <summary>
    /// Inpunt.xaml 的交互逻辑
    /// </summary>
    public partial class Inpunt : Window
    {
        public Inpunt()
        {
            InitializeComponent();
            //设置一个list集合
            List<string> list = new List<string>();
            list.Add("111");
            list.Add("222");
            list.Add("333");
            list.Add("444");
            //赋值给前边控件
            this.combox.ItemsSource=list;
        }

        private void Slider_ValueChanged(object sender, RoutedPropertyChangedEventArgs<double> e)
        {
            tb.Text=(sender as Slider).Value.ToString();
        }

        private void ComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {

        }
    }
}
